package com.dlc.hardwareprotocol;

public interface Protocol {

    /**
     * 最小数据长度   帧头+源地址+目标地址+数据长度+命令码+协议版本+数据+校验和
     */
    int DATA_LENGTH = 0;//0-n length
    int MIN_PACK_LEN = 2 + 1 + 1 + 1 + 1 + 1 + DATA_LENGTH + 1;

    int MAX_DATA_N = 255;

    byte FRAME_HEAD_0 = (byte) 0x3B;
    byte FRAME_HEAD_1 = (byte) 0xB3;

    byte[] FRAME_HEAD = {FRAME_HEAD_0, FRAME_HEAD_1};

    //控制板工作状态数据
    byte COMMAND_BA = (byte) 0xBA;

    int RECEIVE_TIME_OUT = 1000;
}
